package com.dahua.messagesyncbj.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Fault {
    private int id;

    private int lineId;

    private int stationId;

    private int equipmentId;

    //厂家编号
    private String manufactureId;

    private String measurementId;

    //设备类型
    private String equipmentType;
    //报警或预警等级
    private int level;

    //描述
    private String describe;

    //发生时间
    private Timestamp startTime;

    //发生原因
    private String content;

    private String simpleContent;

    //解决方法
    private String solution;

    //预警类类型
    private int eventLevel;

    //标识预警类/故障类
    private String sensorType;

    private Timestamp endTime;

    private int isFixed;

    //用于恢复特定修复状态
    private Integer h_isFixed;

    private int partGroupId;

    private String bk5;

    private Integer isDelete;

    public Fault(String manufactureId, int level, String describe, Timestamp startTime, String content, String solution) {
        this.manufactureId = manufactureId;
        this.level = level;
        this.describe = describe;
        this.startTime = startTime;
        this.content = content;
        this.solution = solution;
    }
}
